package com.atguigu.dao;

import com.atguigu.pojo.NginxServiceConfigProxy;

import java.util.List;

public interface NginxServiceConfigProxyDao {
    //每个方法中都带有所操作类的名字,为了以后看到这个方法,就知道是干什么的
    public int addNginxServiceConfigProxy(NginxServiceConfigProxy nginxServiceConfigProxy);
    public int deleteNginxServiceConfigProxyById(String id);
    public int updateNginxServiceConfigProxy(NginxServiceConfigProxy nginxServiceConfigProxy);
    public NginxServiceConfigProxy queryNginxServiceConfigProxyById(String id);
    public NginxServiceConfigProxy queryNginxServiceConfigProxyByTargetNodeId(String targetNodeId);
    public List<NginxServiceConfigProxy> queryNginxServiceConfigProxysByTargetNodeId(String targetNodeId);
    public List<NginxServiceConfigProxy> queryNginxServiceConfigProxys();
    public List<NginxServiceConfigProxy> queryNginxServiceConfigProxiesByServiceId(String serviceId);
    public List<NginxServiceConfigProxy> queryNginxServiceConfigProxiesByFrontPort(String frontPort);
    public List<NginxServiceConfigProxy> queryNginxServiceConfigProxiesByServiceIdFrontDomainPort(String serviceId,String frontDomain,String frontPort);
    public Integer queryForPageTotalCount();
    public List<NginxServiceConfigProxy> queryForPageItems(Integer begin, Integer pageSize);
}
